package com.keshihao.springcloud.service.impl;

import com.keshihao.springcloud.mapper.PaymentDao;
import com.keshihao.springcloud.service.PaymentService;
import com.keshihao.springcloud.entities.Payment;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

/**
 * @Author Mr.Keshihao
 * @Date 2020/8/15 9:40
 * @Version 1.0
 */
@Service
public class PaymentServiceImpl implements PaymentService {

  @Resource
  private PaymentDao paymentDao;

  public int create(Payment payment){

    return paymentDao.create(payment);

  }

  public Payment getPaymentById(Long id){

    return paymentDao.getPaymentById(id);

  }

}
